package org.jeecg.modules.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description: bim_project_info
 * @Author: jeecg-boot
 * @Date: 2022-11-25
 * @Version: V1.0
 */
@Data
@TableName("bim_project_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "bim_project_info对象", description = "bim_project_info")
public class ProjectInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "应用序列号", required = true)
    @NotNull(message = "应用序列号")
    private String appCode;

    @ApiModelProperty(value = "第三方项目ID", required = true)
    @NotNull(message = "第三方项目ID不能为空")
    private Long projectId;

    @ApiModelProperty(value = "apiId", required = true)
    @NotNull(message = "apiId不能为空")
    private String apiId;

    @ApiModelProperty(value = "projectApiId不能为空")
    @NotNull(message = "projectApiId不能为空")
    private Integer projectApiId;

    /**
     * 工程名称
     */
    @Excel(name = "工程名称", width = 15)
    @ApiModelProperty(value = "工程名称")
    private String projectName;
    /**
     * 工程地址
     */
    @Excel(name = "工程地址", width = 15)
    @ApiModelProperty(value = "工程地址")
    private String projectAddress;
    /**
     * 模型ID
     */
    @Excel(name = "模型ID", width = 15)
    @ApiModelProperty(value = "模型Guid")
    private String modelInfoGuid;

    /**
     * 启用状态
     */
    @Excel(name = "启用状态", width = 15)
    @ApiModelProperty(value = "启用状态")
    @Dict(dicCode = "ENABLE_FLAG")
    private Integer enableFlag;
    /**
     * 删除状态
     */
    @Excel(name = "删除状态", width = 15)
    @ApiModelProperty(value = "删除标志(0-正常,1-已删除)")
    @TableLogic(value = "0", delval = "1")
    private Integer delFlag;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
